package com.xunfang.portal.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * @TableName t_book
 */
@Data
@TableName(value ="t_book")
public class Book {
    private Long id;

    private String name;

    private Integer typeId;

    private String publisher;

    private Date publicationDate;

    private String author;

    private Double price;

    private String detail;

    private String imgSrc;

    private Integer collectionCount;

    private Integer storeCount;

    //购买数量
    private Integer buyCount;

    private Integer readCount;

//    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

//    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    private Integer state;

    @Version
    private Integer version;
}